package com.yc.fresh.bean;

import java.util.Objects;

/**
 * 商品信息
 * @Auther: HuYang
 * @Date: 2022/11/28 - 11 - 28 - 21:50
 * @Description: com.yc.fresh.bean
 * @version: 1.0
 */
public class ProductInfo {
    private Long pno;
    private String pname;
    private Integer tno;
    private Double price;
    private String intro;
    private Integer balance;
    private String pics;
    private String unit;
    private String weight;
    private String desrc;
    private Integer status;

    @Override
    public String toString() {
        return "ProductInfo{" +
                "pno=" + pno +
                ", pname='" + pname + '\'' +
                ", tno=" + tno +
                ", price=" + price +
                ", intro='" + intro + '\'' +
                ", balance=" + balance +
                ", pics='" + pics + '\'' +
                ", unit='" + unit + '\'' +
                ", weight='" + weight + '\'' +
                ", desrc='" + desrc + '\'' +
                ", status=" + status +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ProductInfo)) return false;
        ProductInfo that = (ProductInfo) o;
        return Objects.equals(pno, that.pno) && Objects.equals(pname, that.pname) && Objects.equals(tno, that.tno) && Objects.equals(price, that.price) && Objects.equals(intro, that.intro) && Objects.equals(balance, that.balance) && Objects.equals(pics, that.pics) && Objects.equals(unit, that.unit) && Objects.equals(weight, that.weight) && Objects.equals(desrc, that.desrc) && Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pno, pname, tno, price, intro, balance, pics, unit, weight, desrc, status);
    }

    public Long getPno() {
        return pno;
    }

    public void setPno(Long pno) {
        this.pno = pno;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Integer getTno() {
        return tno;
    }

    public void setTno(Integer tno) {
        this.tno = tno;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getDesrc() {
        return desrc;
    }

    public void setDesrc(String desrc) {
        this.desrc = desrc;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
